home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / config.h.amiga < prev    next >
Text File  |  1994-09-15  |  6KB  |  204 lines

  1. /* config.h
  2.  * This file was produced by running the config.h.SH script, which
  3.  * gets its values from config.sh, which is generally produced by
  4.  * running Configure.
  5.  *
  6.  * Feel free to modify any of this as the need arises.  Note, however,
  7.  * that running config.h.SH again will wipe out any changes you've made.
  8.  * For a more permanent change edit config.sh and rerun config.h.SH.
  9.  */
  10.  
  11.  
  12. /* EUNICE:
  13.  *    This symbol, if defined, indicates that the program is being compiled
  14.  *    under the EUNICE package under VMS.  The program will need to handle
  15.  *    things like files that don't go away the first time you unlink them,
  16.  *    due to version numbering.  It will also need to compensate for lack
  17.  *    of a respectable link() command.
  18.  */
  19. /* VMS:
  20.  *    This symbol, if defined, indicates that the program is running under
  21.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  22.  */
  23. /* XENIX:
  24.  *    This symbol, if defined, indicates thet the program is running under
  25.  *    Xenix (at least 3.0 ?).
  26.  */
  27. /* BSD:
  28.  *    This symbol, if defined, indicates that the program is running under
  29.  *    a BSD system.
  30.  */
  31. /*#undef EUNICE        /**/
  32. /*#undef VMS        /**/
  33. /*#undef XENIX        /**/
  34. #define BSD        /**/
  35.  
  36. /* CPPSTDIN:
  37.  *    This symbol contains the first part of the string which will invoke
  38.  *    the C preprocessor on the standard input and produce to standard
  39.  *    output.     Typical value of "cc -E" or "/lib/cpp".
  40.  */
  41. /* CPPMINUS:
  42.  *    This symbol contains the second part of the string which will invoke
  43.  *    the C preprocessor on the standard input and produce to standard
  44.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  45.  *    to specify standard input, otherwise the value is "".
  46.  */
  47. #define CPPSTDIN "cpp"
  48. #define CPPMINUS ""
  49. #define SASCPPSTDIN "sc:c/sc NOVERSION PPONLY "
  50. #define SASCPPMINUS ""
  51.  
  52. /* bzero:
  53.  *    This symbol is maped to memset if the  bzero() routine is not
  54.  *    available to set memory to 0.
  55.  */
  56. /*#define    bzero(s,l)    memset((s),0,(l))    ;    /* mapped to memset */
  57.  
  58. /* CBRT:
  59.  *    This symbol, if defined, indicates that the cbrt() (cube root)
  60.  *    function is available.
  61.  */
  62. #ifndef __SASC
  63. #define    CBRT        /**/
  64. #endif
  65.  
  66. /* index:
  67.  *    This preprocessor symbol is defined, along with rindex, if the system
  68.  *    uses the strchr and strrchr routines instead.
  69.  */
  70. /* rindex:
  71.  *    This preprocessor symbol is defined, along with index, if the system
  72.  *    uses the strchr and strrchr routines instead.
  73.  */
  74. #ifdef __SASC
  75. #define    index strchr    /* cultural */
  76. #define    rindex strrchr    /*  differences? */
  77. #endif
  78.  
  79. /* MEMSET:
  80.  *    This symbol, if defined, indicates that the memset routine is available
  81.  *    to set blocks of memory. You should always use bzero() instead of
  82.  *    memset() because bzero is remaped to memset if necessary. This means
  83.  *    that a memset() routine must be provided in case MEMSET is not defined
  84.  *    and no bzero() is found.
  85.  */
  86. #define    MEMSET        /**/
  87.  
  88. /* POPEN:
  89.  *    This symbol, if defined, indicates that the popen routine is
  90.  *    available to open a pipe from a process.
  91.  */
  92. #define POPEN        /**/
  93.  
  94. /* RUSAGE:
  95.  *    This symbol, if defined, indicates that the getrusage() routine exists.
  96.  *    Inclusion of <sys/resource.h> and <sys/time.h> may be necessary.
  97.  */
  98. #ifndef __SASC
  99. #define    RUSAGE        /**/
  100. #endif
  101.  
  102. /* TIMES:
  103.  *    This symbol, if defined, indicates that the times() routine exists.
  104.  *    Note that this became obsolete on some systems (SUNOS), which now
  105.  * use getrusage().
  106.  */
  107. /* CLOCKTYPE:
  108.  *    This symbol holds the type returned by times(). It can be long,
  109.  *    or clock_t on BSD sites (in which case <sys/types.h> should be
  110.  *    included). Moreover, the Clock_t symbol is defined in common.h
  111.  *    and should be used for easy clean reference.
  112.  */
  113. #ifndef __SASC
  114. #define TIMES        /**/
  115. #endif
  116. #define CLOCKTYPE long        /**/
  117.  
  118. /* I_STRING:
  119.  *    This symbol, if defined, indicates to the C program that it should
  120.  *    include <string.h> (USG systems) instead of <strings.h> (BSD systems).
  121.  */
  122. #define I_STRING        /**/
  123.  
  124. /* I_SYSRESOURCE:
  125.  *    This symbol, if defined, indicates to the C program that it should
  126.  *    include <sys/resource.h>.
  127.  */
  128. #ifndef __SASC
  129. #define    I_SYSRESOURCE        /**/
  130. #endif
  131.  
  132. /* I_SYSTYPES:
  133.  *    This symbol, if defined, indicates to the C program that it should
  134.  *    include <sys/types.h>.
  135.  */
  136. #define    I_SYSTYPES        /**/
  137.  
  138. /* I_TIME:
  139.  *    This symbol, if defined, indicates to the C program that it should
  140.  *    include <time.h>.
  141.  */
  142. /* I_SYSTIME:
  143.  *    This symbol, if defined, indicates to the C program that it should
  144.  *    include <sys/time.h>.
  145.  */
  146. /* I_SYSTIMEKERNEL:
  147.  *    This symbol, if defined, indicates to the C program that it should
  148.  *    include <sys/time.h> with KERNEL defined.
  149.  */
  150. #define I_TIME        /**/
  151. /*#define I_SYSTIME        /**/
  152. /*#undef I_SYSTIMEKERNEL        /**/
  153.  
  154. /* nrand:
  155.  *    This macro is to be used to generate uniformly distributed
  156.  *    random numbers over the range [0., 1.].
  157.  */
  158. /* seednrand:
  159.  *    This symbol defines the macro to be used in seeding the
  160.  *    random number generator (see nrand).
  161.  */
  162. /*#define nrand()        drand48()        /**/
  163. /*#define seednrand(x)    srand48(x)    /**/
  164. #define nrand() (random() / (double) ((1UL << 31) -1))
  165. #define seednrand(x) srandom(x)
  166.  
  167. /* VOIDFLAGS:
  168.  *    This symbol indicates how much support of the void type is given by this
  169.  *    compiler.  What various bits mean:
  170.  *
  171.  *        1 = supports declaration of void
  172.  *        2 = supports arrays of pointers to functions returning void
  173.  *        4 = supports comparisons between pointers to void functions and
  174.  *            addresses of void functions
  175.  *        8 = suports declaration of generic void pointers
  176.  *
  177.  *    The package designer should define VOIDUSED to indicate the requirements
  178.  *    of the package.  This can be done either by #defining VOIDUSED before
  179.  *    including config.h, or by defining defvoidused in Myinit.U.  If the
  180.  *    latter approach is taken, only those flags will be tested.  If the
  181.  *    level of void support necessary is not present, defines void to int.
  182.  */
  183. #ifndef VOIDUSED
  184. #define VOIDUSED 11
  185. #endif
  186. #define VOIDFLAGS 11
  187. #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  188. #define void int        /* is void to be avoided? */
  189. #define M_VOID        /* Xenix strikes again */
  190. #endif
  191.  
  192. /* URT:
  193.  *     This symbol, if defined, indicates that the Utah Raster
  194.  *    Toolkit is being used.
  195.  */
  196. #define       URT          /**/
  197.  
  198. /* I_VARARGS:
  199.  *    This symbol, if defined, indicates to the C program that it should
  200.  *    include <stdlib.h>.
  201.  */
  202. #define I_STDLIB        /**/
  203.  
  204.